<template>
  <div class="page">
    <div class="box">
      <div style="margin-bottom: 77px;">
        <div class="title1">登录注册></div>
        <div class="title2">选择身份</div>
      </div>
      <div class="u-text-center" style="margin-bottom: 93px;">
        <div class="title">请选择您的登录身份</div>
      </div>
      <div class="role-list">
        <div class="role-item">
          <img style="width: 236px;" src="@/assets/images/role1.png" alt="">
          <a><div class="btn" @click="router.push('/studyInfo')">学生</div></a>
        </div>
        <div class="role-item">
          <img style="width: 239px;" src="@/assets/images/role2.png" alt="">
          <a><div class="btn" @click="router.push('/studyInfo')">教师</div></a>
        </div>
        <div class="role-item">
          <img style="width: 275px;" src="@/assets/images/role3.png" alt="">
          <a><div class="btn" @click="router.push('/studyInfo')">家长</div></a>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, reactive } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

</script>

<style lang="scss" scoped>
.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 10vh 20px;
  background-color: #F5F6F8;
  .box {
    width: calc(100vw - 280px);
    border-radius: 6px;
    background: #FFF;
    padding: 24px 76px 128px;
    .title1 {
      display: inline-block;
      padding: 12px;
      color: #FFF;
      font-size: 20px;
      background-color: #6F55FF;
      position: relative;
      margin-right: 33px;
      z-index: 0;
      &::after {
        content: '';
        width: 33px;
        height: 33px;
        background-color: #6F55FF;
        position: absolute;
        z-index: -1;
        top: 50%;
        right: 0;
        transform: translateY(-50%) translateX(50%) rotate(45deg);
      }
    }
    .title2 {
      display: inline-block;
      padding: 12px;
      color: #FFF;
      font-size: 20px;
      background-color: #FF8E46;
      position: relative;
      margin-right: 33px;
      z-index: 0;
      &::after {
        content: '';
        width: 33px;
        height: 33px;
        background-color: #FF8E46;
        position: absolute;
        z-index: -1;
        top: 50%;
        right: 0;
        transform: translateY(-50%) translateX(50%) rotate(45deg);
      }
    }
    .title {
      display: inline-block;
      line-height: 50px;
      position: relative;
      color: #000;
      text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
      font-family: "PingFang SC";
      font-size: 36px;
      position: relative;
      z-index: 0;
      margin-bottom: 118px;
      &::before {
        content: '';
        position: absolute;
        left: 20px;
        bottom: 0;
        width: 100%;
        height: 20px;
        border-radius: 100px;
        background: rgba(111, 85, 255, 0.80);
        z-index: -1;
      }
    }
    .role-list {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 180px;
      .role-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 83px;
        img {
          height: auto;
        }
        .btn {
          width: 220px;
          height: 60px;
          line-height: 60px;
          text-align: center;
          border-radius: 10px;
          background: #EEE;
          font-size: 20px;
          text-align: center;
          &:hover {
            background: #6F55FF;
            color: #fff;
          }
        }
      }
    }
  }
}
</style>